package cn.ncupyh.Extends;

public class Cook extends Work{
    //厨师
    //成员变量:工号，姓名，工资
    // 成员方法:工作(炒菜)，吃饭(吃米饭)


    @Override
    public String toString() {
        return "Cook{" +
                "ID='" + ID + '\'' +
                ", name='" + name + '\'' +
                ", salary=" + salary +
                '}';
    }

    public Cook() {
    }

    public Cook(String ID, String name, double salary) {
        super(ID, name, salary);
    }

    public void CookWork(){
        System.out.println("厨师的工作是炒菜!");
    }

}
